#pragma once

#ifdef TESTDLL_EXPORTS
#define TESTDLL_API __declspec(dllexport)
#else
#define TESTDLL_API __declspec(dllimport) 
#endif

#include "AllStruct.h"

#ifdef __cplusplus
extern "C" {
#endif

	TESTDLL_API void Init();
	TESTDLL_API void StructClear();
	TESTDLL_API void StructAdd(AllStruct::DemoStruct* value);
	TESTDLL_API void StructAdds(AllStruct::DemoStruct* values, int len);

	TESTDLL_API void StructRead(int id, AllStruct::DemoStruct* readValue);
	TESTDLL_API void StructReads(int* ids, int len,
		AllStruct::DemoStruct* items);

#ifdef __cplusplus 
}
#endif 